class Vote < ActiveRecord::Base
	has_many :sections, :dependent => :destroy #复数
	accepts_nested_attributes_for :sections,:reject_if => proc { |attributes| attributes['title'].blank? },:allow_destroy => true

end
